package com.windward.vii.web.controller;

import com.windward.vii.common.JsonResult;
import com.windward.vii.service.aliyun.OssService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by tiansj on 15/7/14.
 */
@Controller
@RequestMapping(value = "/")
public class AliyunController {

    @Resource
    OssService ossService;

//    @Resource
//    SmsService smsService;

    @RequestMapping(value = "v1/api1/aliyun/oss/token")
    @ResponseBody
    public JsonResult getStsTempAuthor() {
        return ossService.getStsTempAuthor();
    }

//    @RequestMapping(value = "v1/api1/aliyun/sms/send")
//    public JsonResult sendSms(String) {
//        return smsService.sendSms()
//    }
}
